package ch03_程序流程控制;

public class Ch3_6 {
	public static void main(String[] args) {
		int factorial = 1;
		int n = 6, i = 2;
		while (i <= n) {
			factorial *= i;
			i++;
		}
		System.out.println(n +"的阶乘：" + factorial);
	}
}
